<script type="text/javascript" src="javascript/ajax/prototype.js"></script>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function upTopics(item,user){
  //alert("up");
  var url = '<!--[pngetbaseurl]-->' + 'index.php?module=InnoForum&type=ajax&func=upTopics&uid=' + user + '&item_id=' + item;
  //alert(url);
  new Ajax.Request(url, {
    method:'get',
    onSuccess: function(transport){
        var result = transport.responseText;
        if(trimString(result) == ''){
          alert("กรุณาเข้าสู่ระบบ")
        }else{
          res_spl = result.split(":");
          if(res_spl[0]=="1"){
            alert(res_spl[1]);
          }else {
            alert(res_spl[1]);
            window.location = '<!--[ypgetcurrenturl]-->';
          }
        }
        //alert('<!--[pnml name="_INNOFORUM_USER_LIST_TOPICS_AlertA"]-->');
        
      }
  });
  
}

  function trimString (str) 
  {
    str = this != window? this : str;
    return str.replace(/\s+/g, '').replace(/\s+$/g, '');
  }

function deleteTopics(item,user){
   var answer = confirm ("<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmDel']--> <!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmNo']-->");
  if (answer){
     var url = '<!--[pngetbaseurl]-->' + 'index.php?module=InnoForum&type=ajax&func=deleteTopics&uid=' + user + '&item_id=' + item;
     new Ajax.Request(url, {
        method:'get',
        onSuccess: function(transport){
            var result = transport.responseText;
            alert('<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmDelS']-->');
            window.location = '<!--[ypgetcurrenturl]-->';
          }
    });
  }
}

function moveTopics(item,user){
  var answer = confirm ("<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmMove']--> <!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmNo']-->");
  if (answer){
     var url = '<!--[pngetbaseurl]-->' + 'index.php?module=InnoForum&type=ajax&func=moveTopics&uid=' + user + '&item_id=' + item;
     new Ajax.Request(url, {
        method:'get',
        onSuccess: function(transport){
            var result = transport.responseText;
            alert('<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_ComfirmMoveS']-->');
            window.location = '<!--[ypgetcurrenturl]-->';
          }
    });
  }
}


function recTopics(item,user){
     var url = '<!--[pngetbaseurl]-->' + 'index.php?module=InnoForum&type=ajax&func=recTopics&uid=' + user + '&item_id=' + item;
     new Ajax.Request(url, {
        method:'get',
        onSuccess: function(transport){
            var result = transport.responseText;
            alert('<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_Success']-->');
            window.location = '<!--[ypgetcurrenturl]-->';
          }
    });

}
</script>
<script type="text/javascript" src="modules/InnoForum/pnjavascript/wz_tooltip.js"></script>
<!-- Template -->
<div class="grid_23">
  <a href="<!--[pngetbaseurl]-->" >
    <strong><!--[pnml name='_ANDREAS08_HOME']--></strong>
  </a><img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
  <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid]-->" >
    <strong><!--[pnml name='_INNOFORUM_USER_STD_HEADER_MyTopic']--></strong>
  </a>
  <!--[if not empty($smarty.get.type_id)]-->
    <!--[assign_set_type_id assign="&type_id" key=$smarty.get.type_id]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=$smarty.get.type_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']-->&nbsp;<!--[get_topic_type type_id=$smarty.get.type_id]-->">
      <strong><!--[get_topic_type type_id=$smarty.get.type_id]--></strong>
    </a>
  <!--[/if]-->
  <!--[if not empty($smarty.get.category_id)]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=$smarty.get.category_id ]-->" 
    title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$extendResult.category_name]-->">
      <strong><!--[$extendResult.category_name]--></strong>
    </a>
  <!--[/if]-->
  <!--[if not empty($smarty.get.subcategory_id)]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=$smarty.get.category_id subcategory_id=$smarty.get.subcategory_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$extendResult.subcategory_name]-->">
      <strong><!--[$extendResult.subcategory_name]--></strong>
    </a>
  <!--[/if]-->
  <hr />
  <!--[include file='user_std_header.htm']-->
</div>
<div class="clear"></div> 
<div class="grid_16 alpha" style="overflow-x:hidden">
<table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
  <tr class="orange_header" valign="top">
    <td>
      <h2 class="text_horange">
        <!--[pnml name='_INNOFORUM_USER_Categories']-->
        <!--[if not empty($_GET.category_id)]-->
          <font color="#FF6600"><!--[$extendResult.category_name]--></font>
        <!--[/if]-->
      </h2>   
    </td>
    <td align="right" valign="bottom">
    <form name="type" id="type">      
      <img src="<!--[modulepath]-->/pnimages/color_swatch.png" width="16px" height="16px" align="absmiddle" alt="<!--[pnml name='_INNOFORUM_INC_SEARCH_TOPICS_Category']-->" title="<!--[pnml name='_INNOFORUM_INC_SEARCH_TOPICS_Category']-->"/>
      <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='']-->>ทุกประเภท</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=13 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='13']-->>ประกาศ</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=2 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='2']-->>ซื้อ</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=7 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='7']-->>ขาย</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=16 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='16']-->>ฝากขาย</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=4 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='4']-->>ขายด่วน</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=14 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='14']-->>ขายดาวน์</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=10 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='10']-->>รถเต๊นท์</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=8 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='8']-->>ให้เช่า</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=5 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='5']-->>ประมูล</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=12 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='12']-->>ยกเลิกการขาย</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=15 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='15']-->>จองแล้ว</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=3 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='3']-->>ซื้อขายแล้ว</option>
        <option value="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid type_id=17 ]--><!--[$get_user_id]-->" <!--[selected cmp_value=$smarty.get.type_id obj_value='17']-->>ขายแล้วแบบกลางอากาศ</option>
      </select> 
    </form> 
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <table  cellpadding="3px" cellspacing="0px">    
        <tr><td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=2]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="รถบรรทุก" alt="รถบรรทุก" src="<!--[modulepath]-->/pnimages/category/truck.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=5]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="เครื่องจักรกลหนัก" alt="เครื่องจักรกลหนัก" src="<!--[modulepath]-->/pnimages/category/excavator.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=1]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="รถบัส" alt="รถบัส" src="<!--[modulepath]-->/pnimages/category/bus.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=3]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="รถตู้" alt="รถตู้" src="<!--[modulepath]-->/pnimages/category/van.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=10]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="รถยนต์" alt="รถยนต์" src="<!--[modulepath]-->/pnimages/category/car.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=4]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="รถกระบะ" alt="รถกระบะ" src="<!--[modulepath]-->/pnimages/category/pickup.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=12]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="รถมอเตอร์ไซค์" alt="รถมอเตอร์ไซค์" src="<!--[modulepath]-->/pnimages/category/motorcycle.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=13]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="เรือ" alt="เรือ" src="<!--[modulepath]-->/pnimages/category/boat.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=6]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="อะไหล่รถ" alt="อะไหล่รถ" src="<!--[modulepath]-->/pnimages/category/gear.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=7]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="เครื่องจักรกล และอุปกรณ์" alt="เครื่องจักรกล และอุปกรณ์" src="<!--[modulepath]-->/pnimages/category/equipment.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=8]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="บริการ" alt="บริการ" src="<!--[modulepath]-->/pnimages/category/boss.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=9]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px"  title="งาน" alt="งาน" src="<!--[modulepath]-->/pnimages/category/professor.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=14]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="ประกาศอื่นๆ" alt="ประกาศอื่นๆ" src="<!--[modulepath]-->/pnimages/category/rocket.png" /></a>
          </td>
          <td>
            <a class="image_border" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=99]--><!--[$get_type_id]--><!--[$get_user_id]-->"><img width="37px" height="37px" title="ประกาศจากทีมงาน" alt="ประกาศจากทีมงาน" src="<!--[modulepath]-->/pnimages/category/Speaker.png" /></a>
          </td>
        </tr>
        <!--[if count($extendResult.subcategory) gt 0]-->
        <tr>
          <td colspan="14">      
            <fieldset style="border:1px solid #eee">
            <h3 class="text_horange">
              <!--[pnml name='_INNOFORUM_USER_SubCategories']-->
              <!--[if not empty($_GET.subcategory_id)]-->
                <font color="#FF6600"><!--[$extendResult.subcategory_name]--></font>
              <!--[/if]-->
            </h3>
              <!--[foreach from=$extendResult.subcategory item=subcate]-->
                <div class="cate-item">
                  <img src="<!--[modulepath]-->/pnimages/bullet_orange.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่ย่อย"/>
                  <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='my_topics' user_id=$user.uid category_id=$_GET.category_id subcategory_id=$subcate.id]--><!--[$get_type_id]--><!--[$get_user_id]-->">
                  <!--[$subcate.name]-->
                  </a>
                </div>
              <!--[/foreach]--> 
            </fieldset>
          </td>
        </tr>
        <!--[/if]-->
      </table>
    </td>
  </tr>
</table>
<br />
<div style="width:100%" class="text-right">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
</div>
<table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
  <tr>
    <td>
    <form name="form1" id="form1">
      <img src="<!--[modulepath]-->/pnimages/text_linespacing.png" width="16px" height="16px" align="absmiddle" alt="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_Order']-->"/>
      <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
        <option value="<!--[ypgetcurrenturl query='order=']-->" <!--[selected cmp_value=$_GET.order obj_value='']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_Auto']--></option>
        <option value="<!--[ypgetcurrenturl query='order=date']-->" <!--[selected cmp_value=$_GET.order obj_value='date']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByDatePost']--></option>
        <option value="<!--[ypgetcurrenturl query='order=title']-->" <!--[selected cmp_value=$_GET.order obj_value='title']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByName']--></option>
        <option value="<!--[ypgetcurrenturl query='order=view']-->" <!--[selected cmp_value=$_GET.order obj_value='view']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByView']--></option>
        <option value="<!--[ypgetcurrenturl query='order=post']-->" <!--[selected cmp_value=$_GET.order obj_value='post']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByReply']--></option>
      </select>
    </form>
    </td>
    <td align="right">    
			<!--[include file='inc_search_topics.htm']-->
    </td>
  </tr>
  <tr class="blue_header">
    <td>      
      <h1 class="text_hblue"><!--[pnml name='_INNOFORUM_USER_STD_HEADER_MyTopic']--></h1>
    </td><td align="right">
			<script type="text/javascript">
				var fontSize = 1;
				function zoomIn() {
					fontSize += 0.1;
					document.getElementById("zoom").style.fontSize = fontSize + "em";
				}
				function zoomOut() {
					fontSize -= 0.1;
					document.getElementById("zoom").style.fontSize = fontSize + "em";
				}
			</script>
			<script type="text/javascript">
				function MM_jumpMenu(targ,selObj,restore){ //v3.0
					eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
					if (restore) selObj.selectedIndex=0;
				}
			</script>
      ขนาดตัวอักษร&nbsp;
      <input type="image" src="<!--[modulepath]-->/pnimages/zoom_out.png" name="zoom out" width="16px" height="16px" onClick="zoomOut()"/>
      <input type="image" src="<!--[modulepath]-->/pnimages/zoom_in.png" name="zoom in" width="16px" height="16px" onClick="zoomIn()"/>
    </td>
  </tr>
  <tr>
    <td colspan="2">     
<table id="zoom" width="100%" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
  <!--[foreach from=$objectArray item=item]-->
    <!--[assign_val assign="item_id"   key=$item.id]-->
    <!--[check_image_directory_path id=$item.id]-->
    <!--[assign_scan_firstimage assign="fstimage" key=$medium_directory_path]-->
    <tr onmouseover="this.bgColor='#ecf5ff'" onmouseout="this.bgColor='#ffffff'">
      <td>
        <table width="100%" height="auto" cellpadding="0" cellspacing="3" border="0" style="border-bottom:1px dashed #aaa">
          <tr valign="top">
            <td rowspan="3" width="110px" align="center">
              <!--[if $item.has_image]-->
                <a class='image_border' target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->" onmouseover="Tip('<img src=\'<!--[$large_directory_path]--><!--[if $item.firstimage]--><!--[$item.firstimage]--><!--[else]--><!--[$fstimage]--><!--[/if]-->\' width=\'450\'/>')" onmouseout="UnTip()">
                  <!--[if $item.firstimage]-->
                    <img src="<!--[$medium_directory_path]--><!--[$item.firstimage]-->" width="100px" height="75px" alt="<!--[$item.title]-->"/>
                  <!--[else]-->
                    <!--[if $fstimage]-->
                      <img src="<!--[$medium_directory_path]--><!--[$fstimage]-->" width="100px" height="75px" alt="<!--[$item.title]-->"/>
                    <!--[else]-->
                      <img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
                    <!--[/if]-->
                  <!--[/if]-->
                </a>
              <!--[else]-->
                <img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
              <!--[/if]-->
            </td>

            <td colspan="2" width="auto">
              <!--[if $item.status eq 'T']--><img width="16px" height="16px" src="<!--[modulepath]-->/pnimages/rosette.png" align="absmiddle" alt="ประกาศแนะนำ" title="แนะนำ"/>
              <!--[/if]--> 
                <font class="text_13">                
                  <a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->">
                    <!--[$item.title|mb_truncate:80:"..."]-->
                  </a>
                </font>             
              <!--[if $item.is_new eq 'T']--><img width="28px" height="11px" src="<!--[modulepath]-->/pnimages/New_icons_32.gif" align="absmiddle" alt="ประกาศใหม่">
              <!--[/if]-->
              <!--[if $item.update_icon eq '1']--><img width="47px" height="10px" src="<!--[modulepath]-->/pnimages/animate_update.gif" align="absmiddle" alt="ข้อมูลเพิ่มเติม"/>
              <!--[/if]-->
              <!--[if $item.onsale eq '1']--><img width="51px" height="16px" src="<!--[modulepath]-->/pnimages/onsale.gif" align="absmiddle" alt="ลดราคาสุดๆ"/>
              <!--[/if]-->
              <br />
              <!--[if $item.price_detail]-->
                <!--[$item.price_detail|mb_truncate:100:"..."]--><br />
              <!--[else]-->
                <!--[if is_numeric($item.price)]-->                               
                    <!--[if $item.price eq '0' ]-->
                      <!--[pnml name='_INNOFORUM_USER_NoPrice']--><br />
                    <!--[else]-->             
                      <!--[get_topic_type type_id=$item.type_id]-->&nbsp;<!--[$item.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']--><br />
                    <!--[/if]-->  
                <!--[else]-->
                  <!--[$item.price|mb_truncate:100:"..."]--><br />
                <!--[/if]-->                  
              <!--[/if]-->
            </td>
            <td rowspan="2" colspan="2" class="text_13 text_dgray text_center" width="115px" style="border-left:solid #eee 1px">
              <span style="color:<!--[if $item.type_id eq '2']-->#FF8000<!--[elseif $item.type_id eq '3' || $item.type_id eq '12']-->#FF0000<!--[elseif $item.type_id eq '5' || $item.type_id eq '8' || $item.type_id eq '10' || $item.type_id eq '14']-->#33CC00<!--[elseif $item.type_id eq '13']-->#440e62<!--[elseif $item.type_id eq '15']-->#ec008c<!--[elseif $item.type_id eq '17']-->#ecac00<!--[else]-->#0080FF<!--[/if]-->"><!--[get_topic_type type_id=$item.type_id]--><br />
                <!--[if  is_numeric($item.price)]-->
                  <!--[if $item.price eq '0' ]-->                    
                    <!--[pnml name='_INNOFORUM_USER_NoPrice']--><br />
                  <!--[else]-->             
                    <!--[$item.price|number_format:0]--><br />
                  <!--[/if]-->  
                <!--[else]-->
                  <!--[$item.price|mb_truncate:13:"..."]--><br />
                <!--[/if]-->
              </span>                   
                <!--[$item.province]--> 
            </td>
            <td rowspan="3" width="16px" style="border-left:solid #eee 1px">
							<!--[if intval($user.uid) eq intval($item.cr_uid)]-->
								<a href="#" onclick="upTopics('<!--[$item.id]-->','<!--[$user.uid]-->'); return false;" title="<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_Up']-->">
        					<img src="<!--[modulepath]-->/pnimages/7.png" align='absmiddle'/>
      					</a><br />
								<a href="#" onclick="moveTopics('<!--[$item.id]-->','<!--[$user.uid]-->'); return false;" title="<!--[pnml name='_INNOFORUM_USER_LIST_MY_TOPICS_MovetoSell']-->">
									<img src="<!--[modulepath]-->/pnimages/transmit.png" align='absmiddle'/>
								</a><br />
								<a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='form' ctrl='Topics' id=$item.id]-->" title="แก้ไขประกาศ">
									<img src="<!--[modulepath]-->/pnimages/pencil.png" align="absmiddle"/>
								</a><br />
								<a href="#" onclick="deleteTopics('<!--[$item.id]-->','<!--[$user.uid]-->'); return false;" title="ลบประกาศ">
									<img src="<!--[modulepath]-->/pnimages/delete.png" align="absmiddle"/>
								</a><br />
							<!--[/if]-->
            </td>
          </tr>
          <tr class="text_9 text_dgray" valign="bottom">
            <td colspan="2" width="auto">
              <img src="<!--[modulepath]-->/pnimages/key.png" width="16px" height="16px" align="absmiddle" alt="รหัส"  title="รหัส"/>
              <font color="#333333"><!--[$item.ref_id]--></font>
              <img src="<!--[modulepath]-->/pnimages/sitemap_color.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่และประเภท"/><!--[getcategory_by_topic_id topic_id=$item.id]-->
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$item.type_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']--><!--[get_topic_type type_id=$item.type_id]-->"><!--[get_topic_type type_id=$item.type_id]--></a>&nbsp;>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$category]-->"><!--[$category]--></a>&nbsp;>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id  ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$subcategory]-->"><!--[$subcategory]--></a>
            </td>
          </tr>
          <tr class="text_9 text_dgray" valign="bottom">  
            <td>                          
              <img src="<!--[modulepath]-->/pnimages/38.png" width="16px" height="16px" align="absmiddle" alt="เจ้าของประกาศ"/>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' user_id=$item.cr_uid]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_MyallTopic']-->&nbsp;<!--[$item.name]-->">
              <!--[$item.name]-->
              </a>  
            </td> 
            <td class="text_right"> 
              <img src="<!--[modulepath]-->/pnimages/calendar_view_day.png" width="16px" height="16px" align="absmiddle" alt="วันที่ลงประกาศ" title="วันที่ลงประกาศ"/>
                &nbsp;<!--[$item.cr_date|date_format:"%d/%m/%Y"]--> 
            </td>
            <td width="50px" align="right">
              <!--[$item.count_post]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/comments.png" width="16px" height="16px" align="absmiddle" alt="จำนวนคนตอบ" title="จำนวนคนตอบ"/>
            </td>
            <td width="65px" align="right">    
              <!--[$item.count_view]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/monitor.png" width="16px" height="16px" align="absmiddle" alt="จำนวนคนดู" title="จำนวนคนดู"/>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  <!--[/foreach]-->   
</table>
    </td>
  </tr>
</table>
<br />
<div style="width:100%" class="text-right">
<!--[yppager show=page 
                 img_prev="modules/InnoForum/pnimages/back.png"
                 img_next="modules/InnoForum/pnimages/next.png"
                 rowcount=$pager.numitems 
                 limit=$pager.itemsperpage 
                 posvar=startnum 
                 shift=0 
]-->
</div>
<br />
</div>
